import rxAjax from '@/assets/js/ajax.js';

//信息公告 api接口
export const InsNewsApi = {};

InsNewsApi.baseUrl= '/api-portal/portal/core/insNews';

//查询列表
InsNewsApi.getAllIssuedNews=function (parameter) {
    let url= InsNewsApi.baseUrl + '/getAllIssuedNews';
    return rxAjax.postJson(url,parameter).then (res => {
        return res.result
    })
}
/**
 * 查看单记录
 * @param pkId
 * @returns {*}
 */
InsNewsApi.readInsNews =function(pkId) {
    var url= InsNewsApi.baseUrl + '/readInsNews?pkId=' + pkId;
    return rxAjax.get(url);
}

export  default InsNewsApi;

